<?php
	header("Content-Type: text/html;charset=utf-8");
	include("function/_nosql.php"); //
	include("function/function.php");
	include("_include.user.judge.php");
	$kboy_userid = $_SESSION['kboy_userid'];
	$action = chkstr(trim($_REQUEST['action']));
	$id = chkstr(trim($_REQUEST['id']));
	if($action == "del"){
		if($id){
			if(getNewsNums("kboy_order","order_no='$id'  and uid=$kboy_userid")<1){
				echo erro("参数错误!");
			}
		}else{
			echo erro("参数错误!!");
		}
		
			$mysql = new sqlstr("kboy_order"); 
			$news_sql = $mysql -> deleteSql("order_no='$id' and uid=$kboy_userid");
			$news_res = mysql_query($news_sql);
			if($news_res){
				echo ok("操作成功","user_order.php");
			}else{
				echo erro("服务器内部错误");
			}
		
	}else{
		echo erro("参数错误!!!");
	}
?>